!HID User Manual - PortID

The PortID in more detail |

When using multiple devices with the same DeviceID (e.g. two identical keyboards) you may want to assign different Actions the the keys of each keyboard. This can be done by using the PortID in the the centre part of the Edit key window. There are two ways to identify the device: A. By using the Absolute port number An 8-digit hexadecimal number is assigned by USBHID to each device, representing its physical position in the USB topology. This is called the Hardware port number.
The first two digits represent the USB filing system involved. For the native USB filing system on an IYONIX machine (called usb) this will always be 00. The 3rd digit represents the USB Bus number, which is 1 in the example. The rest of the PortID is built from the physical port numbers of each of the HUBs in the chain. In the example, the keyboard is connected to port 1 of the root HUB. Please note that, when using the absolute port number, the assignments will only work when the keyboard is connected to that particular USB socket. B. By using the Relative port number As an alternative to the above, you may also use the method by which each device is given a relative port number. When using two or more identical devices, the one on the lowest physical port will be given relative port number 0. The next one will be 1 and so on. This number is called the Index.

Related subjects |

The Keyboard window Editing a key definition More about the KeyCode More aobut the DeviceID Main index

| © Copyright Paul Reuvers X-Ample Technology bv usb@xat.nl Last changed: Last changed: Sunday, 18 April 2004 - 11:42 CET.